from likeshop.base.mybase import Tools


class reg_model(Tools):
    path = '/page/account/register'

    def reg_action(self, user, pwd, types):
        mydata = {
            'mobile': user,
            'password': pwd,
            'client': types
        }
        res = self.session.post(url=self.hosturl+self.path, data=mydata)
        return res.json()
